<?php

use Biz\service\Goods;
use Biz\service\GoodsDetail;
use Biz\service\Sku as sSku;

/**
 * @deprecated
 */
class SharePageAction extends ActionPlugin
{

    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {

        $goods_id = $this->getRequest()->getQuery('goods_id', 0);
        $goodsShareInfo = Goods::Goods($goods_id, Goods::FIELDS_GROUP_DETAIL);
        $skuInfo = sSku::Sku($goods_id, sSku::FIELDS_GROUP_ALL);
		$goodsShareInfo['sku_info'] =  $skuInfo['sku_info'];
		$goodsShareInfo['sku_attr'] = $skuInfo['sku_attr'];
        $this->setSuccess($goodsShareInfo);

    }

}